<%@ page import="cn.Booker" %>
<%@ page import="java.util.List" %><%--
  Created by IntelliJ IDEA.
  User: lingxinyue
  Date: 2021/12/27
  Time: 6:19 下午
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>查询图书结果</title>
  <link rel="stylesheet" href="/Login/sucbookcss.css">
  <script src="sucbookjs.js"></script>
</head>
<body>



<table>
  <tr>
    <th>书id</th>
    <th>书名</th>
    <th>作者</th>
    <th>出版商</th>
    <th>是否被借阅</th>
    <th>借阅者学号</th>
  </tr>
  <%
    List<Booker> userList=(List<Booker>) request.getAttribute("bookSomeUsers");
    // for (User oneUser:userList)
    for(Booker oneUser:userList){
  %>
  <tr>
    <td><%=oneUser.getIdbook()%>
    </td>
    <td><%=oneUser.getBookname()%>
    </td>
    <td><%=oneUser.getWriter()%>
    </td>
    <td>
      <%=oneUser.getPublish()%>
    </td>
    <td><%=oneUser.getIs_borrow()%></td>
    <td><%=oneUser.getUserid()%></td>
  </tr>
  <%
    }
  %>

  <section>
    <!--for demo wrap-->
    <h1>图书查阅记录</h1>

  </section>
  </div>





</table>
</body>
</html>
